package com.alibaba.algo.core.base;

/**
 * Created by IntelliJ IDEA.
 * User: glorysongglory
 * Date: 2020/5/9
 * Time: 10:28
 */

import ch.qos.logback.core.pattern.ConverterUtil;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
public class PagerEntity<T> {
    private long total;
    private int totalPages;
    private int pageIndex;
    private int pageSize;
    private List<T> dataList;

    public PagerEntity(long total, int totalPages, int pageSize, int pageIndex, List<T> dataList) {
        this.total = total;
        this.totalPages = totalPages;
        this.pageSize = pageSize;
        this.pageIndex = pageIndex;
        this.dataList = dataList;
    }


}
